﻿@model Huirui.Cavan.Presentation.ViewModel.StockModule.IStockViewModel
@{
    var selectStockWindow = "selectStockWindow" + Model.Purpose;
    var stockTableid = "stocks" + Model.Purpose;
    var doSelectStock = "doSelectStock" + Model.Purpose;
}
<div id="@selectStockWindow" class="easyui-window" data-options="closed:true,minimizable:false,maximizable:false,collapsible:false,title:'@Html.Raw("选择存货")',modal:true" style="width: 900px; height: 600px; padding: 2px;">
    @using (Html.BeginForm(ActionConst.SEARCH, ControllerConst.STOCK, FormMethod.Post, new { id = "searchStock" + Model.Purpose }))
    { 
        <input type="submit" value="搜索" />
        @Html.TextBoxFor(m => m.SearchParam.Name)
        @Html.HiddenFor(m => m.SearchParam.CustomerCode, new { id = "stocksByCustomer" + Model.Purpose })
    }
    <a href="#" id="@doSelectStock" class="easyui-linkbutton" iconcls="icon-ok" plain="true">确定商品</a>
    <table id="@stockTableid" title="存货列表">
    </table>
</div>

